package cn.sstech.IM.webserver.user.dao;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.sstech.IM.webserver.base.dao.BaseDao;
import cn.sstech.IM.webserver.user.model.ImFriendUserData;
import cn.sstech.IM.webserver.user.model.UserDepartmentEntity;
import cn.sstech.IM.webserver.user.model.UserFriend;
import cn.sstech.IM.webserver.user.model.UserMessageEntity;

/**
 * 部门
 * 
 * @author qiqiim
 * @email 1044053532@qq.com
 * @date 2017-11-27 09:38:52
 */
public interface UserDepartmentDao extends BaseDao<UserDepartmentEntity> {
	
	public List<ImFriendUserData> queryGroupAndUser();

	public List<ImFriendUserData> queryUserByUserId(@Param("userId") Long userId);

	public Integer isFriend(@Param("userFriend") UserFriend userFriend);

	public void addFriend(@Param("userFriend") UserFriend userFriend);

	public void delFriend(@Param("userFriend") UserFriend userFriend);

	public List<ImFriendUserData> querySysServer();
}
